package com.xiaoq.ar.service;

import com.xiaoq.ar.entity.MyTreasureEntity;
import com.xiaoq.ar.entity.Punchs;

import java.util.List;

/**
 * Created by chenjh on 2018/3/5.
 */
public interface MyTreasureService {

    boolean save(MyTreasureEntity entity);

    /**
     *
     * @param arActivityId AR 活动主键
     * @param userId
     * @return
     */
    MyTreasureEntity getByArActivityUserId(String arActivityId, String userId);

    /**
     *  将一条打卡信息,添加到myTreasure
     * @param myTreasureId 打卡主键
     * @param punchs 一条打卡记录
     * @return
     */
    boolean addPunchs2MyTreasure(String myTreasureId, Punchs punchs);

    /**
     *  根据打卡主键更新打卡记录
     * @param myTreasureEntity
     * @return
     */
    boolean updateMyTreasureById(MyTreasureEntity myTreasureEntity);

    /**
     * 用户的轨迹
     * @param userId
     * @return
     */
    List<MyTreasureEntity> getListByUserId(String userId);
}
